package com.dura.common.exception;

import com.dura.common.enums.ExceptionEnums;

/**
 * @version 1.0
 * @Author 振鹏
 * @Date 2025/3/18 16:59
 * @注释
 */
public class SearchException extends RuntimeException{
    private Integer code;

    public SearchException(String message, Integer code) {
        super(message);
        this.code = code;
    }


    public SearchException(ExceptionEnums enums) {
        super(enums.getMsg());
        this.code = enums.getCode();
    }
}
